package com.hlf.modules.api.mapper;

import com.hlf.modules.base.mapper.BaseMapper;
import com.hlf.modules.api.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;

/**
 * 用户
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2017-03-23 15:22:06
 */
@Mapper
public interface UserMapper extends BaseMapper<UserEntity> {

    UserEntity queryByMobile(String mobile);

    /**
     * 修改密码-------------mapper未写
     * @param user
     * @return
     */
    int updateByPrimaryKeySelective(UserEntity user);

    /**
     * 根据手机号查找用户-------------mapper未写
     * @param mobile
     * @return
     */
    UserEntity selectByMobile(String mobile);

    /**
     * 根据手机号查个数-------------mapper未写
     * @param mobile
     * @return
     */
    int selectCountByMobile(String mobile);
}
